# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=jupyter-server-terminals
pkgver=0.4.4
pkgrel=1
pkgdesc="Jupyter server extension for terminals"
url="https://github.com/jupyter-server/jupyter_server_terminals"
arch="noarch"
license="BSD-3-Clause"
depends="py3-terminado"
makedepends="py3-gpep517 py3-hatchling"
checkdepends="py3-pytest jupyter-server"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jupyter-server/jupyter_server_terminals/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/jupyter_server_terminals-$pkgver"
options="!check" # circular dependency on jupyter-server

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
51a160a4a3fe42e4f7c3cc9553ccfa5813e5195c6c332876483e42d8f0d724836e57af31085d9fe8381f084b859d1fc54c71802429b8c0793505970d7dc0f197  jupyter-server-terminals-0.4.4.tar.gz
"
